package com.barbarosso.video {
	import com.barbarosso.video.view.components.VideoController;	
	import com.barbarosso.video.view.components.VideoScreen;
	
	import flash.display.MovieClip;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;	

	/**
	 * @author barbarosso
	 */
	public class VideoPlayer extends MovieClip {
		
		public static const APP_NAME : String = "VideoPlayer";
		
		public var videoScreen 			: VideoScreen;
		public var videoController 		: VideoController;

		private var facade:ApplicationFacade = ApplicationFacade.getInstance( APP_NAME );
		public function VideoPlayer() {
			videoScreen = new VideoScreen();
			videoController = new VideoController();
			this.addChild(videoScreen);
			this.addChild(videoController);
			
            
            stage.scaleMode    = StageScaleMode.NO_SCALE;
            stage.align    = StageAlign.TOP_LEFT;
            
            facade.startup( this );

		}
	}
}
